package com.umpay.dto.merBusi.req.consume;

import org.hibernate.validator.constraints.NotEmpty;

import com.umpay.annotation.Pattern;
import com.umpay.dto.merBusi.req.CommonBusiReq;

/**
 * 
 * @ClassName: ConsumePOSPayBusiReq
 * @Description: POS收单merBusi请求类
 * @author xpl
 * @date Jan 22, 2018
 */
public class ConsumePOSPayBusiReq extends CommonBusiReq {

	@NotEmpty(message = "交易流水号不能为空")
	@Pattern(message="交易流水号格式不正确")
	private String tradeNo;	//交易流水号
	
	@NotEmpty(message = "支付产品不能为空")
	@Pattern(message="支付产品格式不正确")
	private String pProductId;
	
	@NotEmpty(message = "商户号不能为空")
	@Pattern(message="商户号格式不正确")
	private String merId;

	@NotEmpty(message = "金额不能为空")
	@Pattern(message="金额格式不正确")
	private String amount;
	
	@NotEmpty(message = "商户交易流水不能为空")
	@Pattern(message="商户交易流水格式不正确")
	private String merTrace;
	
	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getTradeNo() {
		return tradeNo;
	}

	public void setTradeNo(String tradeNo) {
		this.tradeNo = tradeNo;
	}

	public String getpProductId() {
		return pProductId;
	}

	public void setpProductId(String pProductId) {
		this.pProductId = pProductId;
	}

	public String getMerId() {
		return merId;
	}

	public void setMerId(String merId) {
		this.merId = merId;
	}
	public String getMerTrace() {
		return merTrace;
	}
	public void setMerTrace(String merTrace) {
		this.merTrace = merTrace;
	}

	@Override
	public String toString() {
		return "ConsumePOSPayBusiReq [tradeNo=" + tradeNo + ", pProductId=" + pProductId + ", merId=" + merId
				+ ", amount=" + amount + "]";
	}

}
